package com.student.demo.dao;

import com.student.demo.entiy.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface StudentDao {
    void addStudent(@Param("name") String name, @Param("age") Integer age);

    List<Student> queryStudent(@Param("name") String name);
}
